const chaobiao={
	namespaced:true,
	state:{
		a:100,
		b:2,
		time:'',
		info:{},  //接收对应项的数据,抄表页面
		record:{},//更换记录的页面
	    userInfo: '',
		recordqueryInfo:{},//接收抄表查询记录页面的数据
		todolistInfo:{},//接收我的待办页面的数据
		userInfo2:''

	},
	getters:{
		itemInfo(state){
			return state.info
		}
	},
	mutations:{
		setTodolistInfo(state,v){
			state. todolistInfo=v
		},
		setrecordqueryInfo(state,v){
			state.recordqueryInfo=v
		},
		setInfo(state,v){
			state.info=v;
			// console.log(v);
		},
		setTime(state,v){
			state.time=v;
			// console.log(v);
		},
		setRecord(state,v){
			state.record=v;
			console.log(v);
		},
		updateUserInfo(state,{name}) {
		     state.userInfo =name
		     console.log("存储成功",state)
		},	
		updateUserInfo2(state,{name}) {
		     state.userInfo2 =name
		     console.log("存储成功",state)
		},
	}
	
}
export default chaobiao